package com.wnm.service.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.wnm.dao.CategoryDao;
import com.wnm.pojo.Category;
import com.wnm.service.CategoryService;
import com.wnm.util.DBUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CategoryServiceImpl implements CategoryService{
	@Autowired
	CategoryDao categoryDao;
	@Override
	public List<Category> findAllCategory() {

		List<Category> categorys = categoryDao.findAllCategory();
		return categorys;
	}

}
